package com.powernode.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.powernode.domain.SysUser;

import java.util.List;

/**
* @author 天选
* @description 针对表【sys_user】的数据库操作Mapper
* @createDate 2025-08-11 14:48:58
* @Entity com.powernode.domain.SysUser
*/
public interface SysUserMapper extends BaseMapper<SysUser> {


    /**
     * 根据用户名查询用户信息
     * @param username
     * @return
     */
    SysUser findByUsername(String username);

    /**
     * 根据用户id查询用户权限信息
     * @param userId
     * @return
     */
    List<String> findPermissionsByUserId(Integer userId);
}




